package me.jiatao.jetpack

class MyTestClass<K, V> {
    var k: K? = null
    var y: V? = null
}


fun main(args: Array<String>) {
    val myTestClassType = MyTestClass<String,Int>()::class
    println(myTestClassType.typeParameters)
    println(myTestClassType.typeParameters.size)

    println("first type: ${myTestClassType.typeParameters[0]}")
    println("second type: ${myTestClassType.typeParameters[1]}")
}